package cn.nuist.entity;

import cn.nuist.entity.enu.ProductCategory;

public class OrderItems {
    private Integer orderID;
    private String customerName;
    private String ProductName;
    private double orderPrice;
    private int quantity;
    private double discountRate;
    private double lineTotal;

    public OrderItems(Integer orderID, String customerName, String productName, double orderPrice, int quantity, double discountRate, double lineTotal) {
        this.orderID = orderID;
        this.customerName = customerName;
        ProductName = productName;
        this.orderPrice = orderPrice;
        this.quantity = quantity;
        this.discountRate = discountRate;
        this.lineTotal = lineTotal;
    }

    public OrderItems() {
    }

    public Integer getOrderID() {
        return orderID;
    }

    public void setOrderID(Integer orderID) {
        this.orderID = orderID;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getProductName() {
        return ProductName;
    }

    public void setProductName(String productName) {
        ProductName = productName;
    }

    public double getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(double orderPrice) {
        this.orderPrice = orderPrice;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(double discountRate) {
        this.discountRate = discountRate;
    }

    public double getLineTotal() {
        return lineTotal;
    }

    public void setLineTotal(double lineTotal) {
        this.lineTotal = lineTotal;
    }

    @Override
    public String toString() {
        return "OrderItems{" +
                "orderID=" + orderID +
                ", customerName='" + customerName + '\'' +
                ", ProductName='" + ProductName + '\'' +
                ", orderPrice=" + orderPrice +
                ", quantity=" + quantity +
                ", discountRate=" + discountRate +
                ", lineTotal=" + lineTotal +
                '}';
    }
}
